package globalCode;

//Abstract class for a Connection Thread, defining the behavior of the thread when stopped

public abstract class ConnThread extends Thread {
	protected boolean stopBool;
	
	//Called when the thread should be stopped (i.e. with a user interrupt)
	public void end(){
		stopBool = true;
	}
	
	//Used by child processes of the thread to detect when this thread has been stopped
	public boolean isStopped(){
		return stopBool;
	}
}
